package com.maziro.spring.service.cycle;

import com.maziro.spring.aspect.TimeLogPrint;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AService implements InitializingBean {

	@Autowired
	private BService bService;

	@TimeLogPrint
	public String getUser(Long userId) {
		return bService.getUser(userId);
	}

	@Override
	public void afterPropertiesSet() throws Exception {
		System.out.println("InitializingBean - AService");
	}
}
